
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./animate.css">
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="app">
    <button @click = 'flag = !flag'> 切换 </button>
    <transition
    name="fade" mode="out-in"
    enter-active-class = "animated slideInLeft"
    leave-active-class = "animated slideOutLeft"
    >
    <p v-show = 'flag'> 切换的内容 </p>
    </transition>
    <transition
    name="fade" mode="in-out"
    enter-active-class = "animated slideInLeft"
    leave-active-class = "animated slideOutLeft"
    >
    <p v-show = '!flag'> 切换的内容1111 </p>
    </transition>
    </div>
    </body>

    <script>
    new Vue({
    el: '#app',
    data: {
    flag: true
    }
    })
    </script>
    </html>
